<!--
  @author duanzuocai
  @since 2018/10/19 23:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        城市区域>
        <a lay-href="/company/area/list.action" lay-text="区域管理" th:text="区域地图">区域地图</a>
    </blockquote>

    <div class="layui-card">

        <form method="POST" action="" class="layui-form" lay-filter="zmn-form">
            <div class="layui-form" th:include="companyarea/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <table class="layui-hide" id="zmn-companyarea-table" lay-filter="zmn-companyarea-table"></table>
        </div>

    </div>
</div>

<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=otGlzpt0684vtqNg4XNF6qvj"></script>
<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/company/area/list.action')}]],
        hasAdd: [[${#authPermit.checkPermit('/company/area/add.action')}]],
        hasDel: [[${#authPermit.checkPermit('/company/area/del.action')}]],
        hasServ: [[${#authPermit.checkPermit('/company/area/serviceManager.action')}]],
        hasMap: [[${#authPermit.checkPermit('/company/area/drawMap.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]],
        vo:[[${vo}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        art_companyarea_list: "companyarea/zmn.art.companyarea.list",
    }).use(['index', 'art_companyarea_list']);

</script>
</body>
</html>